//
//  BasseBgImageScrollViewController.m
//  OnionHome
//
//  Created by fengjie on 2019/9/13.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import "BasseBgImageScrollViewController.h"

@interface BasseBgImageScrollViewController ()

@end

@implementation BasseBgImageScrollViewController
-(void)viewDidLoad{
    [super viewDidLoad];
    [self.bg_ImageView addSubview:self.scrollview];
    
    self.contenView = UIView.new;
    self.contenView.userInteractionEnabled = YES;
    [self.scrollview addSubview:self.contenView];
    
    [self.contenView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self.scrollview);
        make.width.mas_equalTo(self.scrollview);
    }];
    
}
-(UIScrollView *)scrollview{
    if (!_scrollview) {
        _scrollview =[[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, KScreenHeight-K_TopHeight)];
        _scrollview.autoresizesSubviews = YES;
        [_scrollview addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapScrollView)]];
    }
    return _scrollview;
}
-(void)tapScrollView{
    [self.view endEditing:YES];
    
}


@end
